package ProjectTeam39.Domains;
/**
 * User in an abstract class meant to give instance variables to all of its subclasses
 * as well as providing a universal getName() class
 * 
 * @author Kyle
 *
 */
public abstract class User 
{
	protected String name;
	protected int securityStatus = 0;
	protected enum Gender{MALE, FEMALE};
	protected short attemptedLogins = 3;
	protected long phoneNumber;
	protected String address;
	protected String username;
	protected String password;
	protected Boolean isDoctor;
	protected boolean status = true;
	
	public String getName()
	{
		return name;
	}
	
	public String getUsername()
	{
		return username;
	}
	
	public String getPassword()
	{
		return password;
	}
	
	public int getSecurityStatus(){
		return securityStatus;
	}
	
	public void setSecurityStatus(int i){
		securityStatus = i;
	}
	
	public boolean getStatus()
	{
		return status;
	}
	
	public void setPassword(String newPass)
	{
		password = newPass;
	}
	
	public void resetPassword()
	{
		this.setPassword("default");
	}
	
	public void suspendAccount()
	{
		if(this.status == true)
		{
			this.status = false;
		}
		else
		{
			
		}
	}
	
	public void activateAccount()
	{
		if(this.status == false)
		{
			this.status = true;
		}
		else
		{
			
		}
	}
}
